<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>御码教育</title>
    <link rel="icon"type="image/x-icon"  sizes="32x32" href="./logo.ico" />
    <link rel="stylesheet" href="./css/base.css" />
    <link rel="stylesheet" href="./css/animate.min.css" />
    <link rel="stylesheet" href="./css/index.css" />
    <link rel="stylesheet" href="./css/learn.css" />
    <base target="_blank" />
    <script src="./js/flexb.js"></script>

    <style>
      body,
      html {
        width: 100%;
        height: 100%;
        background-color: #d8eee1;
      }
      #container {
        overflow: hidden;
        width: 1600px;
        height: 800px;
        margin: 0;
        font-family: '微软雅黑';
        font-size: 20px !important;
        margin: -100px auto;
        border-radius: 15px;
      }
      .BMap_bubble_content {
        color: rgb(204, 9, 9) !important;
        font-size: 20px !important;
      }
    </style>
  </head>
  <body>
    <div class="header">
      <div class="w clearfix">
        <div class="left_logo">
          <a href="http://www.yumacode.com/">
            <img src="./img/logo1.png" alt="" />
          </a>
        </div>
        <div class="right_navlis">
          <ul>
            <li><a href="./index.html">首页</a></li>
            <li><a href="./course.html">课程</a></li>
            <li><a href="./teacher.html">名师团队</a></li>
             <li><a href="./student.html">学员风采</a></li>
            <li><a href="./learn.html" class="active">联系我们</a></li>
          </ul>
        </div>
      </div>
    </div>
    <div class="content">
      <h1>用心，精雕细琢每一课</h1>
      <h4>理论到实战，零基础到精通</h4>
    </div>
    <div class="map_address" id="container"></div>
    <footer class="footer" style="background-color: #7b51bf;">
      <div class="w">
        <div class="logo">
          <img src="./img/logo1.png" alt="" />
        </div>

        <div class="rightMsg">
          <ul class="clearfix">
            <li><a href="./index.html">首页</a></li>
            <li><a href="./course.html">课程学习</a></li>
            <li><a href="./teacher.html">名师团队</a></li>
            <li><a href="./learn.html">联系我们</a></li>
          </ul>

          <div class="address">
            <span>地址:</span>
           辽宁省,大连市,高新园区嘉创大厦1602
          </div>

          <div class="add">
            <p>
              <span>抖音添加: action_li</span>
            </p>

            <p>
              <span>微信扫码添加:  <img src="./img/wx.jpg" width="80px" style="margin-left: 10px; border-radius: 5px;" alt=""></span>
            </p>
          </div>
        </div>
      </div>
    </footer>
    <script>
      function loadJScript() {
        var script = document.createElement('script')
        script.type = 'text/javascript'
        script.src =
          '//api.map.baidu.com/api?type=webgl&v=1.0&ak=dA5hU834aIwoEhVHLSmEs9z9tYJIObgp&callback=init'
        document.body.appendChild(script)
      }
      function init() {
        var map = new BMapGL.Map('container') // 创建Map实例
        var point = new BMapGL.Point(121.538231, 38.867525) // 创建点坐标
        map.centerAndZoom(point, 15)
        map.enableScrollWheelZoom(true) // 启用滚轮放大缩小
        map.setHeading(20)
        map.setTilt(40)
        var marker = new BMapGL.Marker(point) // 创建标注
        map.addOverlay(marker) // 将标注添加到地图中
        var opts = {
          width: 250, // 信息窗口宽度
          height: 100, // 信息窗口高度
          title: '御码', // 信息窗口标题
          message: '这里是御码培训教育基地'
        }
        var infoWindow = new BMapGL.InfoWindow('地址:辽宁省,大连市,高新园区嘉创大厦1602', opts)
        map.openInfoWindow(infoWindow, point)
        function getInfoContent() {
          alert(infoWindow.getContent())
        }

        marker.addEventListener('click', function () {
          map.openInfoWindow(infoWindow, point) //开启信息窗口
        })
      }
      window.onload = loadJScript // 异步加载地图
    </script>
  </body>
</html>
